﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.Master" AutoEventWireup="true"
    CodeBehind="RegistrationEmployee.aspx.cs" Inherits="ProjectSem3.Admin.WebForm17" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
     <script type="text/javascript">
         function checkNumber1(sender, args) {
             var num = document.getElementById('<%=TextBoxPhone.ClientID %>').value;

             if (isNaN(num)) {
                 args.IsValid = false;
             }
             else {

                 args.IsValid = true;
             }
         }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="contentTabs" runat="server">
    <ul>
        <li><a href="ListEmployee.aspx"><span>Employees</span></a></li>
        <li><a href="ListCustomer.aspx"><span>Customers</span></a></li>
        <li><a href="RegistrationEmployee.aspx" class="current"><span>New user</span></a></li>
    </ul>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="contentPage" runat="server">
 <div class="grid_9">
        <h1 >
          New user
        </h1>
    </div>
    
    
    <div class="portlet">
        <div class="portlet-content nopadding">
            <table width="100%" cellpadding="0" cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
                <tr>
                    <td style="width:25%">
                        Username
                    </td>
                    <td style="width:25%">
                        <asp:TextBox ID="TextBoxUsername" runat="server"></asp:TextBox>
                        
                    </td>
                    <td style="width:50%">
                       <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBoxUsername"
                            ErrorMessage="Input this Box" Display="Dynamic" ForeColor="Red" 
                            ValidationGroup="1"></asp:RequiredFieldValidator>
                        <asp:Label ID="lbluserMessage" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        Password
                    </td>
                    <td>
                        <asp:TextBox ID="TextBoxpassword" runat="server" TextMode="Password"></asp:TextBox>
                        
                    </td>
                    <td>
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="TextBoxpassword"
                            ErrorMessage="Input this Box" Display="Dynamic" ForeColor="Red" 
                            ValidationGroup="1"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Fullname
                    </td>
                    <td>
                        <asp:TextBox ID="TextBoxName" runat="server"></asp:TextBox>
                        
                    </td>
                    <td>
                       <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="TextBoxName"
                            ErrorMessage="Input this Box" Display="Dynamic" ForeColor="Red" 
                            ValidationGroup="1"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Birthday
                    </td>
                    <td>
                        <asp:TextBox ID="TextBoxBirthday" runat="server"></asp:TextBox>
                       
                        <asp:CalendarExtender ID="TextBoxBirthday_CalendarExtender" runat="server" Enabled="True"
                            TargetControlID="TextBoxBirthday" Format="MM/dd/yyyy">
                        </asp:CalendarExtender>
                    </td>
                    <td>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="TextBoxBirthday"
                            ErrorMessage="Input this Box" Display="Dynamic" ForeColor="Red" 
                            ValidationGroup="1"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Gender
                    </td>
                    <td colspan="2">
                        Male
                        <input id="Radio1" type="radio" name="Radio1" runat="server" checked="true" />Female<input
                            id="Radio2" name="Radio1" type="radio" runat="server" />
                    </td>
                    
                </tr>
                <tr>
                    <td>
                        Email
                    </td>
                    <td>
                        <asp:TextBox ID="TextBoxMail" runat="server"></asp:TextBox>
                      
                    </td>
                    <td>
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ErrorMessage="Input this Box"
                            ControlToValidate="TextBoxMail" Display="Dynamic" ForeColor="Red" 
                              ValidationGroup="1"></asp:RequiredFieldValidator>
                          <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                              ControlToValidate="TextBoxMail" Display="Dynamic" 
                              ErrorMessage="RegularExpressionValidator" ForeColor="Red" 
                              ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" 
                              ValidationGroup="1">Mail is not valid</asp:RegularExpressionValidator>
                          <asp:Label ID="lblEmailMessage" runat="server" ForeColor="Red"></asp:Label>
                    </td>
                </tr>
                <tr>
                    <td>
                        Address
                    </td>
                    <td>
                        <asp:TextBox ID="TextBoxAddress" runat="server"></asp:TextBox>
                        
                    </td>
                    <td>
                       <asp:RequiredFieldValidator ID="RequiredFieldValidator7" runat="server" ErrorMessage="Input this Box"
                            ControlToValidate="TextBoxAddress" Display="Dynamic" ForeColor="Red" 
                            ValidationGroup="1"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Phone
                    </td>
                    <td>
                        <asp:TextBox ID="TextBoxPhone" runat="server"></asp:TextBox>
                        
                    </td>
                    <td>
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator8" runat="server" ErrorMessage="Input this Box"
                            ControlToValidate="TextBoxPhone" Display="Dynamic" ForeColor="Red" 
                            ValidationGroup="1"></asp:RequiredFieldValidator>
                            <asp:CustomValidator ID="CustomValidator1" runat="server" ControlToValidate="TextBoxPhone"
                            Display="Dynamic" ErrorMessage="CustomValidator" 
                            ClientValidationFunction="checkNumber1" ForeColor="Red" ValidationGroup="1">numberic only</asp:CustomValidator>
                        <asp:RangeValidator ID="RangeValidator1" runat="server" 
                            ControlToValidate="TextBoxPhone" Display="Dynamic" 
                            ErrorMessage="RangeValidator" ForeColor="Red" MinimumValue="0" 
                            ValidationGroup="1" MaximumValue="9999999999">11bil&gt;value&gt;0</asp:RangeValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Salary
                    </td>
                    <td>
                        <asp:TextBox ID="TextBoxSalary" runat="server"></asp:TextBox>
                        
                    </td>
                    <td><asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" ErrorMessage="Input this Box"
                            ControlToValidate="TextBoxSalary" Display="Dynamic" ForeColor="Red" 
                            ValidationGroup="1"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td>
                        Status
                    </td>
                    <td colspan="2">
                        Enable<input id="Radio3" type="radio" name="Radio2" runat="server" checked="true" />Disable<input
                            id="Radio4" type="radio" name="Radio2" runat="server" />
                    </td>
                  
                </tr>
                <tr>
                    <td>
                        &nbsp;
                    </td>
                    <td>
                        <asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Submit" />
                    </td>
                    <td>
                        &nbsp;
                    </td>
                </tr>
            </table>
        </div>
        <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
    </div>
    
</asp:Content>
